import java.util.Scanner;

public class java17{
    public static void main(String [] args){
        int money=1000;
        Scanner sc=new Scanner(System.in);
        int rank=sc.nextInt();
        if(rank==1)
        {
            System.out.println(money*0.9);
        }
        else if(rank==2)
        {
            System.out.println(money*0.8);
        }
        else if(rank==3)
        {
            System.out.println(money*0.7);
        }
        else
        {
            System.out.println(money);
        }
    }
}